home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / utils misc / Bachmann Print Manager 2.01b / BachmannPrintManager.exe / SamplePrints / Incs / PageMgrDefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-19  |  3.0 KB  |  80 lines

  1. /*******************************************************************
  2.  *
  3.  * Copyright ⌐ 1998, Bachmann Software and Services.
  4.  * All rights reserved.
  5.  *
  6.  * FileName:
  7.  *        PrintMgrDefines.h
  8.  *
  9.  * Description:
  10.  *        Print Manager library private definitions.
  11.  *
  12.  * History:
  13.  *       03/30/99    Greg Winton    Created file.
  14.  *
  15.  *       04/07/99    Greg Winton    Added PagFontType declaration.
  16.  *
  17.  *******************************************************************/
  18.  
  19. #ifndef __PAGE_MGR_DEFINES_H__
  20. #define __PAGE_MGR_DEFINES_H__
  21.  
  22. // PalmPilot common definitions
  23. #include <Common.h>
  24.  
  25. /********************************************************************
  26.  * Type and creator of Sample Library database
  27.  ********************************************************************/
  28. #define  pageMgrCreatorID  'BPGM'               // Bachmann Page Manager database creator
  29. #define  pageMgrTypeID     'libr'               // Standard library database type
  30.  
  31. /********************************************************************
  32.  * Internal library name which can be passed to SysLibFind()
  33.  ********************************************************************/
  34. #define        pageMgrName            "PageMgr"
  35.  
  36. /************************************************************
  37.  * PageMgr Library result codes
  38.  * (appErrorClass is reserved for 3rd party apps/libraries.
  39.  * It is defined in SystemMgr.h)
  40.  *************************************************************/
  41.  
  42. #define pagErrParam            (appErrorClass | 1)        // invalid parameter
  43. #define pagErrNotOpen        (appErrorClass | 2)        // library is not open
  44. #define pagErrAlreadyOpen  (appErrorClass | 3)     // return from PagOpen() if
  45.                                                    // the library is already open by others
  46. #define pagErrStillOpen        (appErrorClass | 4)        // returned from PagClose() if
  47.                                                                     // the library is still open by others
  48. #define pagErrMemory            (appErrorClass | 5)        // memory error occurred
  49. #define pagErrDevice       (appErrorClass | 6)     // device not ready error
  50. #define pagErrPort         (appErrorClass | 7)     // port error occurred
  51. #define pagErrAbort        (appErrorClass | 8)     // user aborted
  52. #define pagErrNotImpl      (appErrorClass | 9)     // function not implemented
  53. #define pagErrNotSupp      (appErrorClass | 10)    // request not supported.
  54. #define pagErrState        (appErrorClass | 11)    // state error
  55.  
  56. /********************************************************************
  57.  * Option Defines
  58.  ********************************************************************/
  59. typedef enum {
  60.    pagOptionMaxLines
  61. } PagOptionEnum;
  62.  
  63. // Max font typeface length.
  64. #define pagFontMaxTypeface (25)
  65.  
  66. typedef struct {
  67.    Char           typeface [pagFontMaxTypeface+1];
  68.    UInt           height;
  69.    Boolean        bold;
  70.    Boolean        italics;
  71.    } PagFontType;
  72.  
  73. typedef PagFontType* PagFontPtr;
  74.  
  75. /********************************************************************
  76.  * Public Structures
  77.  ********************************************************************/
  78.  
  79. #endif    // __PAGE_MGR_DEFINES_H__
  80.